package com.ldu.exam.dao;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import com.ldu.exam.model.MenuModel;

public interface MenuRepository extends JpaRepository<MenuModel, Serializable> 
{
	Page<MenuModel> findByNameContaining( String name, Pageable page) ;
	
	List<MenuModel> findByName(String name) ;
	
	Page<MenuModel> findByParentNameContaining(String parentName,Pageable page);
	
	Page<MenuModel> findByNameAndParentNameContaining(String name,String parentName,Pageable page);
	
}
